package com.sq.partner.manager.service.impl;

import java.util.Map;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.sq.partner.manager.controller.CommonController;
import com.sq.partner.manager.dao.CommonDao;
import com.sq.partner.manager.dao.IGatewayUserDao;
import com.sq.partner.manager.mybatis.model.GatewayUser;
import com.sq.partner.manager.service.IGatewayUserLoginService;
import com.sq.partner.manager.util.LogUtil;
@Service
public class GatewayUserLoginServiceImpl implements IGatewayUserLoginService {
	private static Logger logger = LogUtil.getLog(CommonController.class);
	@Resource
	private IGatewayUserDao userDao;
	@Override
	public GatewayUser checkLogin(Map<String,String> map) throws Exception {
			GatewayUser user = (GatewayUser)userDao.checkLogin(map);
				return user;
		}
	
	@Override
	public GatewayUser queryUser(String userCode) throws Exception{
				return userDao.queryUser(userCode);
		}

}
